package eu.floranet.arquivo.model.persistence;


/**
 * Classe que tem sobe sua alçada a criação de novos objectos
 * {@link PersistenceLinkFile} e {@link PersistenceLinkProperties}. Esta classe
 * permite ser extendida para criação de novos objectos e tratamento dos mesmos.
 * 
 * @author jmark
 *
 */
public class PersistenceLinkHandler implements IPersistenceLinkAdapter{

	private PersistenceLinkFile persistenceLinkFile;
	private PersistenceLinkProperties persistenceLinkProperties;
	
	public PersistenceLinkHandler() {
		setPersistenceLinkFile(new PersistenceLinkFile());
		setPersistenceLinkProperties(new PersistenceLinkProperties());
	}
	
	public PersistenceLinkHandler(PersistenceLinkProperties persistenceLinkProperties) {
		setPersistenceLinkFile(new PersistenceLinkFile());
		setPersistenceLinkProperties(persistenceLinkProperties);
	}
	
	public PersistenceLinkHandler(PersistenceLinkFile persistenceLinkFile) {
		setPersistenceLinkFile(persistenceLinkFile);
		setPersistenceLinkProperties(new PersistenceLinkProperties());
	}
	
	public PersistenceLinkHandler(PersistenceLinkFile persistenceLinkFile,
			PersistenceLinkProperties persistenceLinkProperties) {
		setPersistenceLinkFile(persistenceLinkFile);
		setPersistenceLinkProperties(persistenceLinkProperties);
	}

	public PersistenceLinkFile getPersistenceLinkFile() {
		return this.persistenceLinkFile;
	}

	public void setPersistenceLinkFile(PersistenceLinkFile persistenceLinkFile) {
		this.persistenceLinkFile = persistenceLinkFile;
	}

	public PersistenceLinkProperties getPersistenceLinkProperties() {
		return this.persistenceLinkProperties;
	}

	public void setPersistenceLinkProperties(
			PersistenceLinkProperties persistenceLinkProperties) {
		this.persistenceLinkProperties = persistenceLinkProperties;
	}

	
}
